<html>
    <head>
        <title>Configuración Tarifas Multas</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <?php echo link_tag('bootstrap/css/estilo.css') ?>
        <?php echo link_tag('bootstrap/css/bootstrap.min.css') ?>
        <?php echo link_tag('bootstrap/css/layout.css') ?>
        <?php echo link_tag('bootstrap/css/tablascss.css') ?>
    </head>
    <body>
        <fieldset>
            <div class="body" id="container">
                <section id="buttonGroups">
                    <div class="page-header">
                        <h1>Configurar Multas</h1>
                    </div>
                    <div class="row">
                        <div class="span8">
                            <form class="form-horizontal" method="POST" action="/simertweb/configuracion_multas/guardar">
                                <?php echo form_error('l16a30'); ?>
                                <?php echo form_error('i16a30'); ?>  

                                <div class="control-group"> 
                                    <input class="input" style="margin-left: 100px" class="control-label" for="primera" name="l16a30" value="Exceso de 16 a 30 minutos">
                                    <!--<div class="controls">--> 
                                        <b class="warning" style="font-size: 20px">*</b>&nbsp&nbsp&nbsp
                                        <input  type="text" class="input-mini" name="i16a30" placeholder="Costo" value="<?php echo set_value('i16a30'); ?>"> &nbsp;&nbsp;dólares
                                    <!--</div>-->
                                </div>
                                    <button type="submit" class="btn btn-primary">Guardar Cambios</button>
                            </form>
                            <form  method="POST" action="/simertweb/configuracion_multas/desabilitar_multas">
                                <div class="datagrid" style="margin-right: -45px; overflow-y: auto; height: <?php if(count($costos)<4){ echo 'auto';}else{echo '292px';}?>" >

                                    <table  class="table" border=2 style=" overflow-y: scroll">  
                                        <tr >
                                            <td  bgcolor="#CCCOCC"><B><center>Razón</center></B></td>
                                        <td bgcolor="#CCCOCC"><B><center>Valor<br>(Dólares)</center></B></td>
                                        <td bgcolor="#CCCOCC"><B><center>Habilitado</center></B></td>
                                        <td bgcolor="#CCCOCC"><B><center>Habilitar o <br>Inhabilitar </center></B></td>

                                        </tr>


                                        <?php foreach ($costos as $obj) {
                                            ?>
                                            <tr >
                                                <td> <?php echo $obj->razon; ?> </td>                                                
                                                <td><center> <?php echo $obj->valor; ?> </center></td>
                                            <td><center> <?php
                                        if ($obj->habilitado == 1) {
                                            echo 'SI';
                                        } else {
                                            echo 'NO';
                                        }
                                            ?> </center></td>
                                            <?php echo form_error('habilitado'); ?>

                                            <td><center> <input type="checkbox"  name="habilitado[]" value="<?php echo $obj->idTipoMulta; ?>" /></center> </td>                                            
                                            </tr>                            
                                        <?php } ?>
                                    </table>
                                </div>
                                <br>
                                    <button type="submit" class="btn btn-primary">HABILITAR / INHABILITAR </button>
                              
                            </form>




                        </div>
                    </div>
                </section>     


            </div>
        </fieldset>
    </body>
</html>
